/*
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-21 20:54:06
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-21 21:04:13
 */
const { join } = require('path')
const file = join(__dirname, '成绩.txt')
const { readFile, writeFile } = require('fs')
readFile(file, 'utf-8', (err, data) => {
    if (err) throw err
    data = data.replace(/ /g, '\n')
    data = data.replace(/=/g, ':')
    writeFile(file, data, err => {
        if (err) throw err
        console.log('成功');
    })
})